import request from '@/utils/request'

// 查询电用户档案列表
export function listElectricityUsersXb(query) {
  return request({
    url: '/basedata/electricityUsersXb/list',
    method: 'get',
    params: query
  })
}

// 查询电用户档案详细
export function getElectricityUsersXb(id) {
  return request({
    url: '/basedata/electricityUsersXb/' + id,
    method: 'get'
  })
}

// 新增电用户档案
export function addElectricityUsersXb(data) {
  return request({
    url: '/basedata/electricityUsersXb',
    method: 'post',
    data: data
  })
}

// 修改电用户档案
export function updateElectricityUsersXb(data) {
  return request({
    url: '/basedata/electricityUsersXb',
    method: 'put',
    data: data
  })
}

// 删除电用户档案
export function delElectricityUsersXb(id) {
  return request({
    url: '/basedata/electricityUsersXb/' + id,
    method: 'delete'
  })
}
